* make other policiesclearinsheet using pwt61.csvreplace isocode = "DEU" if isocode == "GER"rename yr yeardrop if year<1975 | year>1989keep isocode pc xrat cg yeargen lpc = log(pc*xrat)gen lxr = log(xrat)bysort isocode: egen pcvol1 = sd(lpc)bysort isocode: egen xrvol1 = sd(lxr)bysort isocode: egen cgvol1 = sd(cg)keep isocode pcvol1 xrvol1 cgvol1 yearkeep if year==1975drop yearsort isocodesave otherpolicies, replaceclearinsheet using pwt61.csvreplace isocode = "DEU" if isocode == "GER"rename yr yeardrop if year<1990 | year>2004keep isocode pc xrat cg yeargen lpc = log(pc*xrat)gen lxr = log(xrat)bysort isocode: egen pcvol2 = sd(lpc)bysort isocode: egen xrvol2 = sd(lxr)bysort isocode: egen cgvol2 = sd(cg)keep isocode pcvol2 xrvol2 cgvol2 yearkeep if year==1990drop yearsort isocodemerge isocode using otherpoliciesdrop _mergegen dpcvol = pcvol2 - pcvol1gen dxrvol = xrvol2 - xrvol1gen dcgvol = cgvol2 - cgvol1sort isocode save otherpolicies, replaceclearuse edwards_controls_data_06.dtadrop if year<1975 | year>1989keep isocode capital_ii yearbysort isocode: egen eklib1 = mean(capital_ii)keep isocode eklib1 yearkeep if year==1975drop yearsort isocodemerge isocode using otherpoliciesdrop _mergesort isocodesave otherpolicies, replaceclearuse edwards_controls_data_06.dtadrop if year<1990 | year>2004keep isocode capital_ii yearbysort isocode: egen eklib2 = mean(capital_ii)keep isocode eklib2 yearkeep if year==1990drop yearsort isocodemerge isocode using otherpoliciesdrop _mergegen deklib = eklib2 - eklib1sort isocode save otherpolicies, replaceclearuse ChinnIto2005.dtadrop if year<1975 | year>1989keep isocode kaopen yearbysort isocode: egen cklib1 = mean(kaopen)keep isocode cklib1 yearkeep if year==1975drop yearsort isocodemerge isocode using otherpoliciesdrop _mergesort isocodesave otherpolicies, replaceclearuse ChinnIto2005.dtadrop if year<1990 | year>2004keep isocode kaopen yearbysort isocode: egen cklib2 = mean(kaopen)keep isocode cklib2 yearkeep if year==1990drop yearsort isocodemerge isocode using otherpoliciesdrop _mergegen dcklib = cklib2 - cklib1sort isocode save otherpolicies, replace